CC=gcc
SOURCES=main.c
OBJFILES=main.o
BIN=osd_client
CFLAGS=-c -Wall
LDFAGS=-lc
INSTALL_PATH=/usr/local/bin

all: all_objects
	$(CC) -o $(BIN) $(OBJFILES) $(LDFAGS)

all_objects: $(SOURCES)
	$(CC) $(CFLAGS) $(SOURCES)

.PHONY: clean
clean:
	rm -f $(BIN) \
		$(OBJFILES)

.PHONY: install
install: $(BIN)
	install -m 755 $(BIN) $(INSTALL_PATH)

.PHONY: uninstall
uninstall:
	rm -f $(INSTALL_PATH)/$(BIN)

